package com.lucifer.cloud.auth.msg.producer.domain;

import com.lucifer.cloud.auth.entity.Oauth2BasicUser;
import org.springframework.beans.BeanUtils;

/**
 * @author lucifer
 * @date 2023/12/26 15:37
 */
public class MsgOauth2BasicUserConverter {

    public static MsgOauth2BasicUser converterBasicUser2Msg(Oauth2BasicUser basicUser,String uniqueId){
        MsgOauth2BasicUser msgOauth2BasicUser = new MsgOauth2BasicUser();
        BeanUtils.copyProperties(basicUser,msgOauth2BasicUser);
        msgOauth2BasicUser.setUniqueId(uniqueId);
        return msgOauth2BasicUser;
    }
}
